<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" href="/zhenze/Public/home/css/land.css" />
	</head>
	<body>
		<img src="/zhenze/Public/home/img/login.png" />
		<form name="form1" id="form1" method="POST" action="<?php echo U('Agent/login');?>" >
			<div class="name">
			用户名：
			<input type="text" name="info[username]" id="username" maxlength="10">
			</div>
			<div class="password">
				<span>密</span>码：
				<input type="password" name="info[upassword]" id="upassword" maxlength="16">
			</div>
		</form>
		
		<button onclick="login()">登录</button>
		<script type="text/javascript" src="/zhenze/Public/home/js/screenSize.js" ></script>
		<script type="text/javascript">
		function login(){
			if(document.getElementById("username").value==""){
			        alert('真实名不能为空!');
			        document.getElementById("username").focus();
			        return false;
			    }
			if(document.getElementById("upassword").value==""){
			        alert('登录密码不能为空!');
			        document.getElementById("upassword").focus();
			        return false;
		    	}

				   //  var psd=document.getElementById("upassword").value;
				   //  var b=/^(([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+))[a-zA-Z0-9]*$/i;
				   //  if(b.test(psd)==false){
				   //    alert("密码只能由数字和字母组成！");
				   //    document.getElementById("upassword").focus();
				   //    return false;
			    // }
			    document.getElementById('form1').submit();
		}
		</script>
	</body>
</html>